package com.ip.getip.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

/**
 * @Description 公共dao
 * @Author leixin
 * @Date 2019/9/26 下午2:24
 * @Version 1.0
 **/
@Data
@MappedSuperclass
public abstract class AbstractEntity implements Serializable {
    @Id
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid", strategy = "uuid")
    private String id;
    //创建时间
    @Column(name = "creationTime")
    private Date creationTime=new Date();
}
